package top.houry.im.server.enums;

import lombok.Getter;

/**
 * @Desc
 * @Author houruiyang
 * @Date 2022/6/2
 **/
public enum ImServerResultEnum {

    SUCCESS(200, "成功"),
    SERVER_ERROR(-200, "服务异常"),
    OPERATOR_ERROR(-100, "操作失败"),
    REQ_PARAM_ERROR(-101, "请求参数异常"),
    DATA_NOT_EXIST(-102, "数据不存在"),

    ;

    ImServerResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Getter
    int code;
    @Getter
    String msg;
}
